package main

import (
	"fmt"
)

type person struct {
	age int
	name string
	sex byte
}


type student struct {
	person
	id int
	sex string
}

func main() {
	s := student{}
	s.sex = "男"
	s.person.sex = 2
	// {{0  2} 0 男} 变量重名 会覆盖
	fmt.Println(s)
}
